package bean;

import java.util.Date;
import java.util.Scanner;

public class Son extends Father {
	// static{
	// System.out.println("Son loading....");
	// }
	public Son() {

		name = "tom";
	}

	@Override
	public void earn() {
		System.out.println("Son earn......");
	}

	public void earnInSon(Object s) {
		System.out.println("Object....");
		earn();
	}

	public void earnInSon(String s) {
		System.out.println("String....");
		earn();
	}

	public void earnInSon(Integer i) {
		System.out.println("Integer ....");
		earn();
	}

	public void earnInSon(Integer i, String s) {
		System.out.println("Integer ....");
		earn();
	}

	public void earnInSon(String s, Integer i) {
		System.out.println("Integer ....");
		earn();
	}
	
	public static void work(Father f){
		f.earn();
	}
	

	public static void main(String[] args) {
		Scanner scanner=new Scanner(System.in);
		String s="id: 123     ,   name      john";
		String[] as=s.split(" ");
		System.out.println(as[0]);
		//String s=scanner.next();
		System.out.println("xxxx:"+s);
	}
}










